package com.luyuan.crm.member.model;

import java.util.Date;
import java.util.Set;

import com.luyuan.crm.user.Party;
import com.ruijie.components.security.model.AppUser;

public class Member extends Customer {

    /**	
     * Member Description
     */
    private static final long serialVersionUID = -3795852768952766524L;

    /**
     * 注册时间
     */
    private Date createTime;

    /**
     * 上次购买时间
     */
    private Date activeTime;

    /**
     *  关联用户
     */
    private AppUser account;

    /**
     *  所属专员
     */
    private Party support;

    /**
     * 积分信息
     */
    private MemberIntegral memberIntegral;

    private Set<NoAccountCustomer> accountMembers;

    /**
     * 购物卷
     */
    private Set<MemberCoupon> coupons;

    /**
     * 忠诚度
     */
    private MemberLoyalty loyalty;

    /**
     * 活跃状态
     */
    private MemberLiveness liveness;

    /**
     * 分组
     */
    private Set<MemberGroup> memberGroups;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }

    public AppUser getAccount() {
        return account;
    }

    public void setAccount(AppUser account) {
        this.account = account;
    }

    public Party getSupport() {
        return support;
    }

    public void setSupport(Party support) {
        this.support = support;
    }

    public MemberIntegral getMemberIntegral() {
        return memberIntegral;
    }

    public void setMemberIntegral(MemberIntegral memberIntegral) {
        this.memberIntegral = memberIntegral;
    }

    public Set<NoAccountCustomer> getAccountMembers() {
        return accountMembers;
    }

    public void setAccountMembers(Set<NoAccountCustomer> accountMembers) {
        this.accountMembers = accountMembers;
    }

    public Set<MemberCoupon> getCoupons() {
        return coupons;
    }

    public void setCoupons(Set<MemberCoupon> coupons) {
        this.coupons = coupons;
    }

    public MemberLoyalty getLoyalty() {
        return loyalty;
    }

    public void setLoyalty(MemberLoyalty loyalty) {
        this.loyalty = loyalty;
    }

    public MemberLiveness getLiveness() {
        return liveness;
    }

    public void setLiveness(MemberLiveness liveness) {
        this.liveness = liveness;
    }

    public Set<MemberGroup> getMemberGroups() {
        return memberGroups;
    }

    public void setMemberGroups(Set<MemberGroup> memberGroups) {
        this.memberGroups = memberGroups;
    }
}
